package org.platform.executor.knowledge;

import com.mc.mic.core.bus.provider.IMicProviderServiceExecutor;
import org.platform.mo.csmo.cmd10002.EventGroupAddRequestParam;
import org.platform.mo.csmo.cmd10002.EventGroupAddResponseParam;
import org.platform.service.knowledge.EventServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author FengJie
 * @date 2018/4/16
 */
@Service
public class AddEventGroupExecutor implements IMicProviderServiceExecutor<EventGroupAddRequestParam, EventGroupAddResponseParam> {
    @Autowired
    private EventServiceImpl service;

    @Override
    public EventGroupAddResponseParam doExecute(EventGroupAddRequestParam requeryParam) {
        return service.addEventGroup(requeryParam);
    }

}
